{% extends "../layout.html" %}

{% block content %}
<div class="dy-wrapper">
  <form action="{{ url }}" method="post" class="needs-validation" novalidate>
    <div class="row mb-3">
      <label for="name" class="col-sm-2 col-form-label text-end">名称</label>
      <div class="col-sm-10 position-relative">
        <input type="text" class="form-control" id="name" name="name" value="{{ data.name }}" placeholder="请输入名称" required />
        <div class="invalid-tooltip">名称必须填写</div>
      </div>
    </div>
    <div class="row mb-3">
      <label for="flag" class="col-sm-2 col-form-label text-end">标识</label>
      <div class="col-sm-10 position-relative">
        <input type="text" class="form-control" id="flag" name="flag" value="{{ data.flag }}" placeholder="请输入标识" required />
        <div>标识需要用英文</div>
        <div class="invalid-tooltip">标识必须填写</div>
      </div>
    </div>
    
    <div class="row mb-3">
        <label class="col-sm-2 col-form-label"></label>
        <div class="col-sm-10">
            <button type="submit" class="btn btn-sky-blue">保存</button>
        </div>
    </div>
  </form>
</div>
{% endblock %}